echo "build_new_canonical";
#so I need to build a new canonical file
#I need to take the hashes of the files that are going to uploaded and add them if they are new
#and replace them if they are not


if [ $MODE = 'commit' ] ; then
    #just uploading all files that are different from local to remote, most_recent_local_hashes is the new canonical
    cp $NEWESTHASHFILE $NEW_CONNONICALHASHFILE
fi
if [ $MODE = 'update' ] ; then
    #just taking the remote and putting on top of the local,
    cp $REMOTEHASHFILE $NEW_CONNONICALHASHFILE
fi
